﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAO;
using Entity;

namespace BO
{
    public class StaffBO
    {
        StaffDAO sDAO = new StaffDAO();
        /// <summary>
        /// Lay danh sach sale dua vao list
        /// </summary>
        public List<StaffEntity> LoadStaff()
        {  
            return sDAO.LoadStaff();
        }

        /// <summary>
        /// Lay danh sach sale dua ngoai tru sale duoc chon
        /// </summary>
        public List<StaffEntity> LoadStaff(string SaleName)
        {           
            return sDAO.LoadStaff(SaleName);
        }

        /// <summary>
        /// Lay tat ca thong tin sale
        /// </summary>
        public StaffEntity LoadStaffInfo(string SaleName)
        {
         
            return sDAO.LoadStaffInfo(SaleName);
        }
    }
}
